// 把components中公用的组件进行全局话注册
// 通过插件的方式
import ImageView from '@/components/ImageView/index.vue'
import Sku from '@/components/XtxSku/index.vue'
import DetailHot from '@/components/Detail/DetailHot.vue' // 引入热榜组件
import HeaderCart from '@/components/HeaderCart.vue'

export const componentPlugin = {
  install(app: any) {
    // app.component('组件名称', 组件配置对象)
    app.component('XtxImageView', ImageView)
    app.component('XtxSku', Sku)
    app.component('XtxDetailHot', DetailHot)
    app.component('HeaderCart', HeaderCart)
  },
}
